package com.itheima;


import com.itheima.autoconfig.oss.OssProperties;
import com.itheima.autoconfig.oss.OssTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties({
        OssProperties.class
})
public class HeimaMallAutoConfigration {


    @Bean
    public OssTemplate ossTemplate (OssProperties ossProperties){
        return new OssTemplate(ossProperties);
    }
}
